/* File:	rtc_comp_table.c */ 


/* int = rtc_comp[temp + 40] >> 8
 frac = rtc_comp[temp + 40] & 0xff */
const unsigned short rtc_comp[111] = {
	0xb32, /* index = 0, ppm = -139, -40C */
	0xb43, /* index = 1, ppm = -135, -39C */
	0xb53, /* index = 2, ppm = -131, -38C */
	0xb64, /* index = 3, ppm = -127, -37C */
	0xb75, /* index = 4, ppm = -123, -36C */
	0xc08, /* index = 5, ppm = -119, -35C */
	0xc14, /* index = 6, ppm = -116, -34C */
	0xc25, /* index = 7, ppm = -112, -33C */
	0xc36, /* index = 8, ppm = -108, -32C */
	0xc47, /* index = 9, ppm = -104, -31C */
	0xc58, /* index = 10, ppm = -100, -30C */
	0xc64, /* index = 11, ppm = -97, -29C */
	0xc71, /* index = 12, ppm = -94, -28C */
	0xc7d, /* index = 13, ppm = -91, -27C */
	0xd08, /* index = 14, ppm = -88, -26C */
	0xd19, /* index = 15, ppm = -84, -25C */
	0xd25, /* index = 16, ppm = -81, -24C */
	0xd32, /* index = 17, ppm = -78, -23C */
	0xd3e, /* index = 18, ppm = -75, -22C */
	0xd4b, /* index = 19, ppm = -72, -21C */
	0xd58, /* index = 20, ppm = -69, -20C */
	0xd60, /* index = 21, ppm = -67, -19C */
	0xd6d, /* index = 22, ppm = -64, -18C */
	0xd79, /* index = 23, ppm = -61, -17C */
	0xe08, /* index = 24, ppm = -58, -16C */
	0xe14, /* index = 25, ppm = -55, -15C */
	0xe1d, /* index = 26, ppm = -53, -14C */
	0xe25, /* index = 27, ppm = -51, -13C */
	0xe32, /* index = 28, ppm = -48, -12C */
	0xe3a, /* index = 29, ppm = -46, -11C */
	0xe47, /* index = 30, ppm = -43, -10C */
	0xe4f, /* index = 31, ppm = -41, -9C */
	0xe58, /* index = 32, ppm = -39, -8C */
	0xe60, /* index = 33, ppm = -37, -7C */
	0xe68, /* index = 34, ppm = -35, -6C */
	0xe75, /* index = 35, ppm = -32, -5C */
	0xe79, /* index = 36, ppm = -31, -4C */
	0xf00, /* index = 37, ppm = -29, -3C */
	0xf08, /* index = 38, ppm = -27, -2C */
	0xf10, /* index = 39, ppm = -25, -1C */
	0xf19, /* index = 40, ppm = -23, 0C */
	0xf1d, /* index = 41, ppm = -22, 1C */
	0xf25, /* index = 42, ppm = -20, 2C */
	0xf29, /* index = 43, ppm = -19, 3C */
	0xf32, /* index = 44, ppm = -17, 4C */
	0xf3a, /* index = 45, ppm = -15, 5C */
	0xf3e, /* index = 46, ppm = -14, 6C */
	0xf43, /* index = 47, ppm = -13, 7C */
	0xf47, /* index = 48, ppm = -12, 8C */
	0xf4b, /* index = 49, ppm = -11, 9C */
	0xf53, /* index = 50, ppm = -9, 10C */
	0xf58, /* index = 51, ppm = -8, 11C */
	0xf5c, /* index = 52, ppm = -7, 12C */
	0xf60, /* index = 53, ppm = -6, 13C */
	0xf64, /* index = 54, ppm = -5, 14C */
	0xf68, /* index = 55, ppm = -4, 15C */
	0xf68, /* index = 56, ppm = -4, 16C */
	0xf6d, /* index = 57, ppm = -3, 17C */
	0xf6d, /* index = 58, ppm = -3, 18C */
	0xf71, /* index = 59, ppm = -2, 19C */
	0xf75, /* index = 60, ppm = -1, 20C */
	0xf75, /* index = 61, ppm = -1, 21C */
	0xf75, /* index = 62, ppm = -1, 22C */
	0xf75, /* index = 63, ppm = -1, 23C */
	0xf75, /* index = 64, ppm = -1, 24C */
	0x3, /* index = 65, ppm = 0, 25C */
	0x3, /* index = 66, ppm = 0, 26C */
	0x3, /* index = 67, ppm = 0, 27C */
	0x3, /* index = 68, ppm = 0, 28C */
	0x3, /* index = 69, ppm = 0, 29C */
	0x3, /* index = 70, ppm = 0, 30C */
	0x3, /* index = 71, ppm = 0, 31C */
	0x3, /* index = 72, ppm = 0, 32C */
	0x3, /* index = 73, ppm = 0, 33C */
	0x3, /* index = 74, ppm = 0, 34C */
	0x3, /* index = 75, ppm = 0, 35C */
	0x3, /* index = 76, ppm = 0, 36C */
	0xf75, /* index = 77, ppm = -1, 37C */
	0xf75, /* index = 78, ppm = -1, 38C */
	0xf71, /* index = 79, ppm = -2, 39C */
	0xf6d, /* index = 80, ppm = -3, 40C */
	0xf68, /* index = 81, ppm = -4, 41C */
	0xf64, /* index = 82, ppm = -5, 42C */
	0xf60, /* index = 83, ppm = -6, 43C */
	0xf5c, /* index = 84, ppm = -7, 44C */
	0xf58, /* index = 85, ppm = -8, 45C */
	0xf53, /* index = 86, ppm = -9, 46C */
	0xf4f, /* index = 87, ppm = -10, 47C */
	0xf47, /* index = 88, ppm = -12, 48C */
	0xf43, /* index = 89, ppm = -13, 49C */
	0xf3a, /* index = 90, ppm = -15, 50C */
	0xf36, /* index = 91, ppm = -16, 51C */
	0xf2e, /* index = 92, ppm = -18, 52C */
	0xf29, /* index = 93, ppm = -19, 53C */
	0xf21, /* index = 94, ppm = -21, 54C */
	0xf19, /* index = 95, ppm = -23, 55C */
	0xf10, /* index = 96, ppm = -25, 56C */
	0xf08, /* index = 97, ppm = -27, 57C */
	0xf00, /* index = 98, ppm = -29, 58C */
	0xe79, /* index = 99, ppm = -31, 59C */
	0xe6d, /* index = 100, ppm = -34, 60C */
	0xe64, /* index = 101, ppm = -36, 61C */
	0xe5c, /* index = 102, ppm = -38, 62C */
	0xe53, /* index = 103, ppm = -40, 63C */
	0xe4b, /* index = 104, ppm = -42, 64C */
	0xe3e, /* index = 105, ppm = -45, 65C */
	0xe36, /* index = 106, ppm = -47, 66C */
	0xe29, /* index = 107, ppm = -50, 67C */
	0xe1d, /* index = 108, ppm = -53, 68C */
	0xe10, /* index = 109, ppm = -56, 69C */
	0xe04, /* index = 110, ppm = -59, 70C */
};


const unsigned short temp_adc_max = 62251;
const unsigned short temp_adc_min = 13536;
/* temp adc values  */
const unsigned short adc_temp_ary[111] = {
/*	val,  adc, temperature */
	13536, /* index = 0, 70C */
	13864, /* index = 1, 69C */
	14192, /* index = 2, 68C */
	14519, /* index = 3, 67C */
	14847, /* index = 4, 66C */
	15174, /* index = 5, 65C */
	15537, /* index = 6, 64C */
	15900, /* index = 7, 63C */
	16263, /* index = 8, 62C */
	16626, /* index = 9, 61C */
	16989, /* index = 10, 60C */
	17394, /* index = 11, 59C */
	17798, /* index = 12, 58C */
	18202, /* index = 13, 57C */
	18606, /* index = 14, 56C */
	19010, /* index = 15, 55C */
	19444, /* index = 16, 54C */
	19878, /* index = 17, 53C */
	20312, /* index = 18, 52C */
	20746, /* index = 19, 51C */
	21179, /* index = 20, 50C */
	21714, /* index = 21, 49C */
	22249, /* index = 22, 48C */
	22784, /* index = 23, 47C */
	23319, /* index = 24, 46C */
	23853, /* index = 25, 45C */
	24468, /* index = 26, 44C */
	25083, /* index = 27, 43C */
	25697, /* index = 28, 42C */
	26312, /* index = 29, 41C */
	26926, /* index = 30, 40C */
	27293, /* index = 31, 39C */
	27660, /* index = 32, 38C */
	28027, /* index = 33, 37C */
	28394, /* index = 34, 36C */
	28760, /* index = 35, 35C */
	29299, /* index = 36, 34C */
	29838, /* index = 37, 33C */
	30377, /* index = 38, 32C */
	30916, /* index = 39, 31C */
	31455, /* index = 40, 30C */
	32090, /* index = 41, 29C */
	32724, /* index = 42, 28C */
	33358, /* index = 43, 27C */
	33992, /* index = 44, 26C */
	34626, /* index = 45, 25C */
	35219, /* index = 46, 24C */
	35812, /* index = 47, 23C */
	36405, /* index = 48, 22C */
	36998, /* index = 49, 21C */
	37590, /* index = 50, 20C */
	38143, /* index = 51, 19C */
	38695, /* index = 52, 18C */
	39247, /* index = 53, 17C */
	39799, /* index = 54, 16C */
	40351, /* index = 55, 15C */
	40911, /* index = 56, 14C */
	41471, /* index = 57, 13C */
	42031, /* index = 58, 12C */
	42591, /* index = 59, 11C */
	43150, /* index = 60, 10C */
	43652, /* index = 61, 9C */
	44154, /* index = 62, 8C */
	44656, /* index = 63, 7C */
	45158, /* index = 64, 6C */
	45660, /* index = 65, 5C */
	46150, /* index = 66, 4C */
	46640, /* index = 67, 3C */
	47130, /* index = 68, 2C */
	47620, /* index = 69, 1C */
	48110, /* index = 70, 0C */
	48637, /* index = 71, -1C */
	49164, /* index = 72, -2C */
	49690, /* index = 73, -3C */
	50217, /* index = 74, -4C */
	50743, /* index = 75, -5C */
	51204, /* index = 76, -6C */
	51664, /* index = 77, -7C */
	52125, /* index = 78, -8C */
	52585, /* index = 79, -9C */
	53045, /* index = 80, -10C */
	53470, /* index = 81, -11C */
	53895, /* index = 82, -12C */
	54320, /* index = 83, -13C */
	54745, /* index = 84, -14C */
	55170, /* index = 85, -15C */
	55537, /* index = 86, -16C */
	55904, /* index = 87, -17C */
	56271, /* index = 88, -18C */
	56638, /* index = 89, -19C */
	57004, /* index = 90, -20C */
	57322, /* index = 91, -21C */
	57639, /* index = 92, -22C */
	57956, /* index = 93, -23C */
	58273, /* index = 94, -24C */
	58590, /* index = 95, -25C */
	58861, /* index = 96, -26C */
	59132, /* index = 97, -27C */
	59403, /* index = 98, -28C */
	59674, /* index = 99, -29C */
	59944, /* index = 100, -30C */
	60177, /* index = 101, -31C */
	60410, /* index = 102, -32C */
	60642, /* index = 103, -33C */
	60875, /* index = 104, -34C */
	61107, /* index = 105, -35C */
	61336, /* index = 106, -36C */
	61565, /* index = 107, -37C */
	61794, /* index = 108, -38C */
	62023, /* index = 109, -39C */
	62251, /* index = 110, -40C */
};
